<template>
    <CustOddsPanel v-if="bankers.length>0" :cust-id="custId" :cust-name="custName" :bankers="bankers" :cust-type="custType"/>
</template>
<script>
import CustOddsPanel from '@/components/Customer/CustOddsPanel'
import { bankers } from '@/api/financial/banker'

export default {
  name: 'BankerOdds',
  components: { CustOddsPanel },
  props: {
    custId: {
      type: Number,
      default: null
    },
    custName: {
      type: String,
      default: ""
    },
    custType:{
      type:String,
      default: '1'
    },
  },
  data() {
    return {
      bankers: []
    }
  },
  created() {
    this.getList()
  },
  methods: {
    getList() {
      bankers().then(res => {
        this.bankers = res.data
      })
    }
  }

}
</script>
